from rest_framework import serializers
from xyz.models import Article,Channel

class ChannelModelserializer(serializers.ModelSerializer):
    '''频道列表'''

    class Meta:

        model = Channel

        fields = ['id','name']











